/*
 * Created on 2005-2-21
 *
 */
package bma.common.langutil.convert;


/**
 * @author guanzhong
 * @since 1.0 (imported from BMA.ESP Project)
 *  
 */
public interface Converter {

    /**
     * 判断能否转换对象
     * 
     * @param src
     * @param dest
     * @return
     * @throws Exception
     */
    public abstract boolean canConvert(Class from, Class to);

    /**
     * 转换对象
     * 
     * @param src
     * @param to
     * @param model
     * @return
     * @throws Exception
     */
    public abstract Object convertTo(Object src, Class to);

}